﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="jiniannet.com">
    <link rel="icon" href="../favicon.ico">
    <title>Dashboard Template for Bootstrap</title>
    <link href="http://cdn.bootcss.com/bootstrap/3.3.4/css/bootstrap.min.css" rel="stylesheet">
    <link href="css/dashboard.css" rel="stylesheet">
    <link href="umeditor/themes/default/css/umeditor.min.css" type="text/css" rel="stylesheet">
    <script src="../../assets/js/ie-emulation-modes-warning.js"></script>
    <!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <div class="container admin-views-main admin-views-content-posts ng-scope" data-ng-controller="PostsController">
        <div class="page-header clearfix">
            <h2 class="page-title pull-left ng-binding">
                文章
                <span id="spinner" class="loaded"><i class="fa fa-spinner fa-spin fa-sm"></i></span>
            </h2>
            <a href="/admin/editor/post.cshtml" class="btn btn-success btn-header pull-right ng-binding" type="button"><i class="fa fa-plus"></i>撰写文章</a>
        </div>
        <div class="toolbar-grid clearfix">
            <div class="pull-left">
                <button ng-click="processChecked('delete')" class="btn btn-danger btn-sm ng-binding"><i class="fa fa-times"></i>删除</button>
                <button ng-click="processChecked('publish')" class="btn btn-success btn-sm ng-binding"><i class="fa fa-check"></i>发布</button>
                <button ng-click="processChecked('unpublish')" class="btn btn-info btn-sm ng-binding"><i class="fa fa-minus"></i>Unpublish</button>
            </div>
            <div class="pull-right btn-flt-r hmin767"><button class="btn btn-default btn-sm"><i class="fa fa-cog fa-lg"></i><span class="ng-binding">过滤器</span></button></div>
            <div class="pull-right filterbar flt-r clearfix show-important">
                <div class="active-flt-r"></div>
                <div class="navbar-left search-grid pull-right">
                    <input type="text" ng-model="query" ng-change="search()" class="input-sm form-control pull-right ng-pristine ng-valid" placeholder="搜索">
                </div>
                <div class="btn-toolbar pull-right">
                    <div class="btn-group">
                        <button id="fltr-all" class="btn btn-default btn-sm active ng-binding" ng-click="gridFilter('IsPublished','all','all')">全部</button>
                        <button id="fltr-pub" class="btn btn-default btn-sm ng-binding" ng-click="gridFilter('IsPublished',true,'pub')">已发布</button>
                        <button id="fltr-dft" class="btn btn-default btn-sm ng-binding" ng-click="gridFilter('IsPublished',false,'dft')">稿件</button>
                    </div>
                </div>
                <span class="pull-right lbl-show ng-binding">显示 :</span>
            </div>
        </div>
        <table class="table table-bordered table-striped table-hover table-responsive">
            <thead>
                <tr>
                    <th><input type="checkbox" id="chkAll" ng-click="checkAll($event)"></th>
                    <th class="table-item-title table-item-w60 ng-binding">标题 <a data-ng-click="sort_by('Title',$event)"><i class="fa fa-sort"></i></a></th>
                    <th class="hmax992 ng-binding">作者</th>
                    <th class="hmax479 ng-binding">评论</th>
                    <th class="hmax768 ng-binding">Created on</th>
                    <th class="ng-binding">已发布</th>
                </tr>
            </thead>
            <tbody>
                <tr class="ng-scope">
                    <td><input type="checkbox" id="netpasprotect-sys" data-ng-model="item.IsChecked" class="ng-pristine ng-valid"></td>
                    <td class="table-item-title">
                        <a title="netpasprotect.sys导致系统频繁蓝屏重启的处理方法" class="pull-left" href="/admin/editor/post.cshtml?id=5e4da5d1-e2a9-47f4-b1d2-096b788e7e9e"> <span class="text-ellipsis ng-binding">netpasprotect.sys导致系统频繁蓝屏重启的处理方法</span> </a>
                        <a title="netpasprotect.sys导致系统频繁蓝屏重启的处理方法" class="external-link pull-right" target="_blank" href="/post/netpasprotect-sys"><i class="fa fa-external-link"></i></a>
                    </td>
                    <td class="hmax992"><a href="" title="翅膀的初衷" ng-click="gridFilter('Author',item.Author,'')" class="ng-binding">翅膀的初衷</a></td>
                    <td class="item-comment-post hmax479">
                    </td>
                    <td class="hmax768 ng-binding">2014-08-01 22:08</td>
                    <td><input type="checkbox" data-ng-model="item.IsPublished" data-ng-disabled="true" class="ng-pristine ng-valid" disabled="disabled"></td>
                </tr>
            </tbody>
        </table>
        <div class="text-right pagination-wrapper">
            <ul class="pagination pagination-sm">
                <li data-ng-class="{disabled: currentPage == 0}" class="disabled">
                    <a data-ng-click="prevPage()" class="ng-binding">« Prev</a>
                </li>
                <!-- ngRepeat: n in range(pagedItems.length) -->
                <li data-ng-repeat="n in range(pagedItems.length)" data-ng-class="{active: n == currentPage}" data-ng-click="setPage()" class="ng-scope active">
                    <a data-ng-bind="n + 1" class="ng-binding">1</a>
                </li><!-- end ngRepeat: n in range(pagedItems.length) -->
                <li data-ng-repeat="n in range(pagedItems.length)" data-ng-class="{active: n == currentPage}" data-ng-click="setPage()" class="ng-scope">
                    <a data-ng-bind="n + 1" class="ng-binding">2</a>
                </li><!-- end ngRepeat: n in range(pagedItems.length) -->
                <li data-ng-class="{disabled: currentPage == pagedItems.length - 1}">
                    <a data-ng-click="nextPage()" class="ng-binding">Next »</a>
                </li>
            </ul>
        </div>
    </div>
</body>
</html>
